Release 10.1A: OpenEdge Development:
Progress 4GL Reference
+ Date addition operator
Adds a number of days to a date, producing a date result.
Syntax
dateAn expression that evaluates to a DATE value.
daysAn expression with a value of the number of days you want to add to a
Exampledate.This procedure finds all unshipped orders that are at least one week overdue. If the order is not shipped and the promised date is more than seven days ago, the procedure finds the record for the customer who placed the order and displays the order and customer data.
Notes
- The date addition operator rounds days to the nearest integer value.
- To add a specific number of days or a specific number of milliseconds to a DATETIME, use the DATETIME function. For example:
The DATETIME function ensures that the time portion remains within the valid range, by adding day(s) to the date part when the time part goes over the number of milliseconds in a day.
- To add a specific number of days or milliseconds to a DATETIME-TZ, use the DATETIME-TZ function. For example:
The DATETIME-TZ function ensures that the time portion remains within the valid range, by adding day(s) to the date portion when the time part goes over the number of milliseconds in a day.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |